package com.sunchangpeng.wechat.mp.media.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class MaterialPage {
    @JSONField(name = "total_count")
    private int totalCount;

    @JSONField(name = "item_count")
    private int currentCount;

    @JSONField(name = "item")
    private List<Material> items;

    @Data
    public static class Material {
        @JSONField(name = "media_id")
        private String mediaId;

        @JSONField(name = "name")
        private String fileName;

        @JSONField(name = "update_time")
        private long updateTime;

        private String url;
    }
}
